co = coroutine.create(function(a, b, c)
	print(1, coroutine.running(co))
	coroutine.yield(1,2,3)
	print(2, coroutine.running(co))
	return 4,5,6
end)

print(3, coroutine.running(co))
coroutine.resume(co, -1, -2, -3)
print(4, coroutine.running(co))
coroutine.resume(co, -11, -12, -13)
print(5, coroutine.running(co))

print("-------------------------------")

co = coroutine.create(function()
	print(coroutine.status(co))
	coroutine.resume(coroutine.create(function()
		print(coroutine.status(co))
	end))
end)

print(coroutine.status(co))
coroutine.resume(co)
print(coroutine.status(co))